import Vue from 'vue'
import App from './App.vue'
import 'view-design/dist/styles/iview.css';

 import DerenTccClient from 'dr-tcc'
 import 'dr-tcc/dr-tcc.css'
// import DerenTccClient from '../public/lib/dr-tcc/dr-tcc.common.js'
// import '../public/lib/dr-tcc/dr-tcc.css'
Vue.prototype.$dr = new Vue();

Vue.config.productionTip = false



new Vue({
  render: h => h(App),
}).$mount('#app')

const clientConfig = {
  isVisible: true,
	iconSrc: '',
	wsAddress: '123.60.3.219',
	wsPort: '9864',
	autoLogin: true,
	password: '2zj5TuW6E=Gv7RT?UKMt',
	extensionNumber: '1100',
	operatorId: '1780525391648133120',
	sockUrl: 'http://123.60.3.219:8901/admin/ws',
	callInAudio: require('@/assets/callIn.mp3'),
	calloutAudio: require('@/assets/callout.mp3'),
	callDtmfAudio: require('@/assets/dtmf.mp3')
};

const client = new DerenTccClient(clientConfig);